﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Payment.aspx.cs" Inherits="Payment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body onload="document.forms['payment'].submit();">
    <form name="payment" action="https://www.platnosci.pl/paygw/UTF/NewPayment" method="post">
        <input type="hidden" name="pos_id" value='<%= ShopModel.Settings.PaymentPosID %>'/>
        <input type="hidden" name="pos_auth_key" value='<%= ShopModel.Settings.PaymentPosAuthKey %>'/>
        <input type="hidden" name="session_id" value="<%= order.IDRealization %>"/>
        <input type="hidden" name="amount" value="<%= amount %>"/>
        <input type="hidden" name="desc" value="Zamowienie ID<%= order.IDRealization%>"/>
        <input type="hidden" name="first_name" value="<%= order.iCustomer.FirstName %>"/>
        <input type="hidden" name="last_name" value="<%= order.iCustomer.Surname %>"/>
        <input type="hidden" name="street" value="<%= order.iCustomer.Street.Split(' ','/')[0]  %>"/>
        <input type="hidden" name="street_hn" value="<%= order.iCustomer.Street.Split(' ','/')[1] %>"/>
        <input type="hidden" name="street_an" value="<%= (order.iCustomer.Street.Split('/', ' ').Length>=3)?order.iCustomer.Street.Split('/', ' ')[2]:""%>"/>
        <input type="hidden" name="city" value="<%= order.iCustomer.City %>"/>
        <input type="hidden" name="post_code" value="<%= order.iCustomer.ZipCode %>"/>
        <input type="hidden" name="email" value="<%= order.iCustomer.Email %>"/>
        <input type="hidden" name="pay_type" value="<%= paymentType %>"/>
        <input type="hidden" name="order_id" value="<%= order.IDRealization %>"/>
        <input type="hidden" name="client_ip" value="<%= HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"] %>"/>
        <input type="hidden" name="js" value="1"/>
    </form>
    <table style="font-family: Verdana; font-size: 8pt">
        <tr>
            <td>
                <img alt="indicator" src="gfx/ajaxLoader.gif" /></td>
            <td>
                <%=Resources.Language.Wait %>...</td>
        </tr>
    </table>
</body>
</html>
